function getElement(id) {
	return $("#" + id + ":eq(0)").get(0);
}

function fcs(element_id) {
	var element = getElement(element_id);
	element.defaultValue = '';
	element.value = '';
	element.focus();
}
function clr(element_id) {
	var element = getElement(element_id);
	element.defaultValue = '';
	element.value = '';
}

function toggle(element_id) {
    var element = getElement(element_id);
	if (element !== null) {
		if (element.style.display == "none") element.style.display = "block";
		else element.style.display = "none";
	}
}

function show_inline(element_id) {
	var element = getElement(element_id);
	if (element !== null) element.style.display = "inline";
}

function hide(element_id) {
	var element = getElement(element_id);
	if (element !== null) element.style.display = "none";
}

function submit(form_id) {
	$("#" + form_id).submit();
}


